﻿using System.Collections.Generic;
using FinancePortal.Domain.Enum;
using System.ComponentModel.DataAnnotations;

namespace FinancePortal.Domain.Model
{
    public class Resource : Entity
    {
        public Resource()
        {
            ActivitySchedules = new List<ActivitySchedule>();
        }

        //[Required(ErrorMessage = "A SOEID is required")]
        //[StringLength(7, MinimumLength = 7)]
        public virtual string SOEID { get; set; }

        //[Required(ErrorMessage = "A name is required")]
        //[StringLength(50)]
        public virtual string Name { get; set; }

        //[Required(ErrorMessage = "A email is required")]
        //[StringLength(100)]
        public virtual string Email { get; set; }

        public virtual Area Area { get; set; }

        //[Required(ErrorMessage = "A area is required")]
        public virtual int AreaId { get; set; }

        //[Required(ErrorMessage = "A profile is required")]
        public virtual /*Profile*/int Profile { get; set; }

        public virtual IList<ActivitySchedule> ActivitySchedules { get; set; }
    }
}
